//给按钮绑定事件
$(document).ready(function () {
    $("#toggle-button").click(function () {
        if ($("#toggle-button").is(":checked") == true) {
            send_Message('Yes')
        } else {
            send_Message('No')
            console.log('no')
        }
    });
})
function send_Message(message){
    chrome.runtime.sendMessage(message, function (response) { 
        console.log(response)
    })
}
